package com.letoken.platform.repo.ecommerce.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 主订单
 * </p>
 *
 * @author author
 * @since 2023-11-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ecommerce_user_master_order")
@ApiModel(value="EcommerceUserMasterOrder对象", description="主订单")
public class EcommerceUserMasterOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "主订单编号")
    private String fatherNo;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "订单总金额(数量*实际价格)")
    private BigDecimal totalAmount;

    @ApiModelProperty(value = "运费金额")
    private BigDecimal shipping;


    @ApiModelProperty(value = "订单总金额(数量*实际价格)")
    @TableField("total_amount_cap")
    private BigDecimal totalAmountCap;

    @ApiModelProperty(value = "运费金额")
    @TableField("shipping_cap")
    private BigDecimal shippingCap;

    @ApiModelProperty(value = "订单状态：0->待付款；1->待发货； 2->待收货；3->已完成 4->已取消")
    private Integer status;

    @ApiModelProperty(value = "删除状态 0未删除 1已删除")
    private Integer deleteStatus;

    @ApiModelProperty(value = "提交时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "店铺ID")
    private Integer mallId;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "支付金额")
    @TableField("pay_amount_Cap")
    private BigDecimal payAmountCap;

    @ApiModelProperty(value = "let对人名币汇率")
    private BigDecimal rmbRate;


    @ApiModelProperty(value = "物流公司")
    private String deliveryCompany;

    @ApiModelProperty(value = "物流订单号")
    private String deliveryNo;

    @ApiModelProperty(value = "收货人姓名")
    private String receiverName;

    @ApiModelProperty(value = "收货人电话")
    private String receiverPhone;

    @ApiModelProperty(value = "收货人邮编")
    private String receiverPostCode;

    @ApiModelProperty(value = "省份/直辖市")
    private String receiverProvince;

    @ApiModelProperty(value = "城市")
    private String receiverCity;

    @ApiModelProperty(value = "区")
    private String receiverRegion;

    @ApiModelProperty(value = "详细地址")
    private String receiverAddress;

    @ApiModelProperty(value = "订单备注")
    private String remark;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime paymentTime;

    @ApiModelProperty(value = "发货时间")
    private LocalDateTime deliveryTime;

    @ApiModelProperty(value = "确认收货时间")
    private LocalDateTime receiveTime;

    private Integer confirmStatus;

    private Integer reviewed;

}
